package whut.GA;

/**
 * Created by Justin on 2018-04-20
 */
public interface IGAConstants {
    // parameters for the GA
//    int DIMENSION = 64;
    int POPULATION_SIZE = 2000; //染色体数量
    int NUM_GENERATIONS = 200; //迭代代数
    double ELITISM_RATE = 0.01; //精英率，将某些最优基因不通过选择直接进入下一次进化
    double CROSSOVER_RATE = 0.8; //交叉率
    double MUTATION_RATE = 0.3; //突变率
    int TOURNAMENT_ARITY = 2; //父代染色体数量
}
